home *** CD-ROM | disk | FTP | other *** search
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 1997-99 Pandemic Studios
- //
- // Dark Reign II
- //
-
- CreateObjectType("objective_start_sprawlers", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE");
-
- Action()
- {
- AddBase("Base", "sprawl")
- {
- Orientation(90);
- }
- AssignBaseConstructors("Base")
- {
- Tag("Base");
- }
- AssignBaseUnits("Base")
- {
- Tag("Base");
- }
- SetUnitLimit(200);
- CreateVarInteger("@.outro", 0);
- NewObjective("objective_patrol_hillpaths");
- NewObjective("objective_checkion1");
- NewObjective("objective_checkion2");
- NewObjective("objective_start_reinforcements");
- NewObjective("objective_double_reinforcements");
- }
- }
- }
-
- CreateObjectType("objective_outro_spawn", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("VarConstInteger", "@.outro", "==", 1);
-
- Action()
- {
- ExecuteScript("OutroSpawn", "squad.move.spawntoregion")
- {
- Op("%.region.src", "=", "OutroSpawn");
- Op("%.types", "=", "reinforcements4");
- Op("%.region.dst", "=", "Outro");
- Op("%.formation", "=", "Assault");
- Op("%.direction", "=", 90);
- }
- }
- }
- }
-
-
- CreateObjectType("objective_start_sprawlers_hidden", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE");
-
- Action()
- {
- CreateVarInteger("@.triggerarmy", 0);
- CreateVarInteger("@.outro", 0);
- NewObjective("objective_outro_spawn");
- ExecuteScript("Cin1", "squad.move.tagtoregion.wait")
- {
- Op("%.tag", "=", "Cin1");
- Op("%.region", "=", "Cin1");
- Op("%.attack", "=", 0);
- }
- ExecuteScript("Cin2", "squad.move.tagtoregion.wait")
- {
- Op("%.tag", "=", "Cin2");
- Op("%.region", "=", "Cin2");
- Op("%.attack", "=", 0);
- }
- ExecuteScript("Cin3", "squad.move.tagtoregion.wait")
- {
- Op("%.tag", "=", "Cin3");
- Op("%.region", "=", "Cin3");
- Op("%.attack", "=", 0);
- }
- ExecuteScript("Cin4", "squad.move.tagtoregion.wait")
- {
- Op("%.tag", "=", "Cin4");
- Op("%.region", "=", "Cin4");
- Op("%.attack", "=", 0);
- }
- ExecuteScript("CinBack", "squad.move.tagtoregion.wait")
- {
- Op("%.tag", "=", "CinBack");
- Op("%.region", "=", "CaravanSpawn");
- Op("%.attack", "=", 0);
- }
- }
- }
- }
-
-